package zhouyang.Assert.constructorinjection;

import org.springframework.stereotype.Component;

/**
 * @author: 叶子
 * @date: 2022/03/02 12:51
 * 演示构造注入无法解决循环依赖
 **/
@Component
public class ServiceB {
    private ServiceA serviceA;
    public ServiceB (ServiceA serviceA){
        this.serviceA = serviceA;
    }
}